<?
    use_stylesheets_for_form($form);
    use_javascripts_for_form($form);
?>

<div class="hidden" id="ajaxCreateHandlerUrl"><?= url_for('create_spider_result_ajax') ?></div>
<div class="hidden" id="ajaxUpdateHandlerUrl"><?= url_for('update_spider_result_ajax') ?></div>
<div class="hidden" id="ajaxDeleteHandlerUrl"><?= url_for('delete_spider_result_ajax') ?></div>

<form action="<?= url_for('spider_result_form/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?spider_result_id='.$form->getObject()->getSpiderResultId() : '')) ?>" method="post" <? $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
  <? if (!$form->getObject()->isNew()): ?>
    <input type="hidden" name="sf_method" value="put" />
  <? endif; ?>
  <table>
    <tfoot>
      <tr>
        <td colspan="2">
          &nbsp;<a id="backToList" href="<?= url_for('spider_result_form/index') ?>">Back to list</a>
          <? if (!$form->getObject()->isNew()): ?>
            &nbsp;
            <?=
              link_to(
              	'Delete',
              	'spider_result_form/delete?spider_result_id='.$form->getObject()->getSpiderResultId(),
              	array('id' => 'delete', 'tabindex' => $form->getObject()->getSpiderResultId())
              	)
            ?>
          <? endif; ?>
          <input type="submit" value="Save" />
        </td>
      </tr>
    </tfoot>
    <tbody>
      <?= $form ?>
    </tbody>
  </table>
</form>